<template>
  <div>
    <!--用于展示缩略图-->
    <!-- <img v-if="img" :src="img"> -->
    <el-image v-if="img" :src="img" class="img" fit="cover" :preview-src-list="[ img ]" />
    <span v-else>-</span>
  </div>
</template>
<script>
export default {
  props: {
    img: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
<style scoped>
.img{
  width: 77px;
  height: 56px;
  display: block;
  margin: 0 auto;
}
/deep/ .el-image-viewer__close {
  color: #fff
}
</style>

